package day2;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Sanmu {
    public static void main(String[] args) {
        int a=120,b=22;
        int max=a>b?a:b;
        System.out.println(max);
        int cardno;
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入卡号：");
        int cardNo=sc.nextInt();
        int g=cardNo%10;
        int shi=cardNo/10%10;
        int baiwei=cardNo/100%10;
        int qianwei=cardNo/1000%10;
        int he=g+shi+baiwei+qianwei;
        System.out.println(he>20?"中奖了，奖品是50英寸大彩电":"很遗憾，没有中奖");
    }
}
